<template>
    <view>
        <uv-navbar title="" leftText="返回" bgColor="transparent" @leftClick="back">
            <template #left>
                <view class="flex align-center left-box">
                    <uv-icon name="arrow-left" size="20"></uv-icon>
                </view>
            </template>
        </uv-navbar>
        <view v-if="!loading">
            <web-view :src="urlValue"></web-view>
        </view>
    </view>
</template>
<script setup lang="ts">
import { defineProps, ref } from 'vue'
import { onReady } from '@dcloudio/uni-app';

const urlValue = ref('')

const loading = ref(true)
const props = defineProps({
    url: {
        type: String,
    }
})

onReady(() => {
    setTimeout(() => {
        urlValue.value = props.url
        loading.value = false
    }, 600)
})


const back = () => {
    uni.navigateBack()
}

</script>
<style scoped></style>